import { defineStore } from 'pinia'
import { UserState } from '@/stores/interface'
export const useUserStore = defineStore({
  id: 'rxx-user',
  state: () => ({
    token: '',
    userInfo: {}
  }),
  getters: {},
  actions: {
    // Set Token
    setToken(token: string) {
      this.token = token
    },
    // Set setUserInfo
    setUserInfo(userInfo) {
      this.userInfo = userInfo
    }
  }
})
